package com.tbit.uqbike.object.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.tbit.uqbike.annos.Excel;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * @author yee_
 * @version 1.0
 * @date 2023/2/22 11:30
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class RideCardUserExtendLog {

    @TableId(type = IdType.AUTO)
    private Integer id;

    private Integer accountId;

    private Integer accountUserId;

    @Excel(name = "登录手机号", sort = 2)
    private String accountUserPhone;

    @Excel(name = "用户名", sort = 1)
    private String accountUserName;

    @Excel(name = "受影响用户个数", sort = 3)
    private Integer count;

    @Excel(name = "延长时间", sort = 5)
    private Integer delayDays;

    @Excel(name = "操作时间", sort = 4, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    @Excel(name = "备注", sort = 6)
    private String remark;

    public RideCardUserExtendLog(Integer accountId, Integer accountUserId, String phone,
                                 String accountUserName, Integer count, Integer delayDays,
                                 String remark) {
        this.accountId = accountId;
        this.accountUserId = accountUserId;
        this.accountUserPhone = phone;
        this.accountUserName = accountUserName;
        this.delayDays = delayDays;
        this.count = count;
        this.createTime = new Date();
        this.remark = remark;
    }

}
